<template>
  <view class="v-empty">
    <v-image
      height="400rpx"
      width="400rpx"
      :oss-src="ossSrc"
      :src="src"
      mode="aspectFit"
    />
    <view class="text">
      {{ text }}
    </view>
    <view class="slot">
      <slot />
    </view>
  </view>
</template>

<script setup lang="ts">
defineProps<{
  src?: string;
  ossSrc?: string;
  text?: string;
}>();
</script>

<style lang="scss" scoped>
.v-empty {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36rpx;
  .background {
    display: block;
    height: 400rpx;
    width: 400rpx;
  }
  .text {
    color: #999999;
  }
  .slot {
    margin-top: 100rpx;
  }
}
</style>
